/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.system.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 邀约记录Entity
 * @author jyangye
 * @version 2018-03-08
 */
public class ViEmpInvite extends DataEntity<ViEmpInvite> {
	
	private static final long serialVersionUID = 1L;
	private Office comp;		// 组织机构
	private String name;		// 应邀人
	private String phone;		// 联系方式
	private String sms;		// 短信
	private String operator;		// 操作人
	private String empId;		// 员工编号
	private Date createdAt;		// created_at
	
	public ViEmpInvite() {
		super();
	}

	public ViEmpInvite(String id){
		super(id);
	}

	@ExcelField(title="组织机构", align=2, sort=20)
	public Office getComp() {
		return comp;
	}

	public void setComp(Office comp) {
		this.comp = comp;
	}
	
	@Length(min=0, max=16, message="应邀人长度必须介于 0 和 16 之间")
	@ExcelField(title="应邀人", align=2, sort=30)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=16, message="联系方式长度必须介于 0 和 16 之间")
	@ExcelField(title="联系方式", align=2, sort=40)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=128, message="短信长度必须介于 0 和 128 之间")
	@ExcelField(title="短信", align=2, sort=50)
	public String getSms() {
		return sms;
	}

	public void setSms(String sms) {
		this.sms = sms;
	}
	
	@Length(min=0, max=16, message="操作人长度必须介于 0 和 16 之间")
	@ExcelField(title="操作人", align=2, sort=60)
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
	
	@Length(min=0, max=32, message="员工编号长度必须介于 0 和 32 之间")
	@ExcelField(title="员工编号", align=2, sort=70)
	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="created_at", align=2, sort=80)
	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	
}